package com.hnucm.cooklife.model;

import android.os.Environment;

import com.hnucm.cooklife.base.BaseModel;

import java.io.File;

import okhttp3.MediaType;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import retrofit2.Call;

public class Test extends BaseModel {
//    File file = new File(Environment.getExternalStorageDirectory(), "icon.png");
String path1 = Environment.getExternalStorageDirectory() + File.separator + "Pictures" + File.separator + "test.png";
    File file = new File(path1);
    RequestBody photoRequestBody = RequestBody.create(MediaType.parse("image/png"), file);
    MultipartBody.Part photo = MultipartBody.Part.createFormData("photos", "test.png", photoRequestBody);

    Call<String> call = mApiServer.registerUser(photo);

    public Call<String> getCall() {
        System.out.println(call.toString());
        System.out.println("callsalfd");
        return call;
    }
}
